﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FantasyDraft
{
    enum Positions
    {
        QB,
        RB,
        WR,
    }
    enum QBPlayers
    {
        Fran_Tarkenton = 1,
        Roger_Staubach = 2,
        Peyton_Manning = 3,
        Brett_Favre = 4,
        Tom_Brady = 5,
        Steve_Young = 6,
        Dan_Marino = 7,
        Johnny_Unitas = 8,
        Joe_Montana = 9,
        John_Elway = 10,
    }
    enum RBPlayers
    {
        Marcus_Allen = 1,
        Marshall_Faulk = 2,
        Emitt_Smith = 3,
        Gale_Sayers = 4,
        Eric_Dickerson = 5,
        OJ_Simpson = 6,
        Earl_Campbell = 7,
        Barry_Sanders = 8,
        Walter_Payton = 9,
        Jim_Brown = 10,
    }

    enum WRPlayers
    {
        Marvin_Harrison = 1,
        Terrell_Owens = 2,
        Chris_Carter = 3,
        Steve_Largent = 4,
        Charley_Taylor = 5,
        Paul_Warfield = 6,
        Michael_Irvin = 7,
        Don_Hutson = 8,
        Randy_Moss = 9,
        Jerry_Rice = 10,
    }

    class Player
    {

        public QBPlayers Quarterback { get; set; }
        public RBPlayers Runningback { get; set; }
        public WRPlayers Widereceiver { get; set; }
        public Positions Position { get; set; }

        private string playerName;

        public Player(int player, int position)
        {
            this.Position = (Positions)position;
            if (position == 0)
            {
                this.Quarterback = (QBPlayers)player;
                playerName = Quarterback.ToString();
            }
            if (position == 1)
            {
                this.Runningback = (RBPlayers)player;
                playerName = Runningback.ToString();
            }
            if (position == 2)
            {
                this.Widereceiver = (WRPlayers)player;
                playerName = Widereceiver.ToString();
            }
        }

        public string Name
        {   
            get {
                    return playerName + " " + Position.ToString(); 
            }
        }

        public override string ToString()
        {
            return Name;
        }
    }
}